package cn.huiyunche.base.service.enums;

/**
 * 车辆类型枚举
 *
 * @author houjianhui
 */
public enum TruckTypeEnum {

    COMBINATION_VEHICLE("10", "汽车列车"),
    RESCUE_CAR("20", "救援车");

    private final String value;
    private final String text;

    TruckTypeEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static TruckTypeEnum getByValue(int value) {
        for (TruckTypeEnum temp : TruckTypeEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }

}
